{extend name="public/iframe" /}
{block name="content"}
<div class="row mb-5 g-5">
    <div class="col-xl-2 col-md-4  col-sm-6 col-12 hover-elevate-up">
        <a href="#" class="card bgi-no-repeat " style="background-position: right top; background-size: 30% auto; background-image: url(__ASSETS__/imgs/abstract-1.svg)">
            <div class="card-body">
                <i class="bi bi-person fs-3x text-primary"></i>
                <div class="text-dark fw-bolder fs-2 mt-1" data-kt-countup="true" data-kt-countup-value="10258">10258</div>
                <div class="text-muted fs-7">会员总数</div>
            </div>
        </a>
    </div>
    <div class="col-xl-2 col-md-4  col-sm-6 col-12 hover-elevate-up">
        <a href="#" class="card bgi-no-repeat " style="background-position: right top; background-size: 30% auto; background-image: url(__ASSETS__/imgs/abstract-1.svg)">
            <div class="card-body">
                <i class="bi bi-chat-dots fs-3x text-danger"></i>
                <div class="text-dark fw-bolder fs-2 mt-1" data-kt-countup="true" data-kt-countup-value="3589">3589</div>
                <div class="text-muted fs-7">留言总数</div>
            </div>
        </a>
    </div>
    <div class="col-xl-2 col-md-4  col-sm-6 col-12 hover-elevate-up">
        <a href="#" class="card bgi-no-repeat " style="background-position: right top; background-size: 30% auto; background-image: url(__ASSETS__/imgs/abstract-1.svg)">
            <div class="card-body">
                <i class="bi bi-cart4 fs-3x text-success"></i>
                <div class="text-dark fw-bolder fs-2 mt-1" data-kt-countup="true" data-kt-countup-value="3366">3366</div>
                <div class="text-muted fs-7">商品总数</div>
            </div>
        </a>
    </div>
    <div class="col-xl-2 col-md-4  col-sm-6 col-12 hover-elevate-up">
        <a href="#" class="card bgi-no-repeat " style="background-position: right top; background-size: 30% auto; background-image: url(__ASSETS__/imgs/abstract-1.svg)">
            <div class="card-body">
                <i class="bi bi-card-text fs-3x text-info"></i>
                <div class="text-dark fw-bolder fs-2 mt-1" data-kt-countup="true" data-kt-countup-value="1234">1234</div>
                <div class="text-muted fs-7">文章总数</div>
            </div>
        </a>
    </div>
    <div class="col-xl-2 col-md-4  col-sm-6 col-12 hover-elevate-up">
        <a href="#" class="card bgi-no-repeat " style="background-position: right top; background-size: 30% auto; background-image: url(__ASSETS__/imgs/abstract-1.svg)">
            <div class="card-body">
                <i class="bi bi-currency-yen fs-3x text-danger"></i>
                <div class="text-dark fw-bolder fs-2 mt-1" data-kt-countup="true" data-kt-countup-value="256158">256158元</div>
                <div class="text-muted fs-7">交易总额</div>
            </div>
        </a>
    </div>
    <div class="col-xl-2 col-md-4  col-sm-6 col-12 hover-elevate-up">
        <a href="#" class="card bgi-no-repeat " style="background-position: right top; background-size: 30% auto; background-image: url(__ASSETS__/imgs/abstract-1.svg)">
            <div class="card-body">
                <i class="bi bi-person fs-3x text-warning"></i>
                <div class="text-dark fw-bolder fs-2 mt-1" data-kt-countup="true" data-kt-countup-value="28">28</div>
                <div class="text-muted fs-7">管理员总数</div>
            </div>
        </a>
    </div>
</div>
<div class="card">
    <div class="card-header">
        <h5 class="card-title d-flex flex-column">
            <span class="fs-6 fw-bold">统计图表</span>
            <span class="fs-7 text-muted">统计图表示例</span>
        </h5>
    </div>
    <div class="card-body">
        <div id="charts" class="h-400px "></div>
    </div>
</div>
{/block}
{block name="bottom"}
{:load_assets('echarts','js')}
<script>
    $(function(){
        $(window).resize(function(){
            myChart.resize();
        });
        var myChart = echarts.init(document.getElementById('charts'));

        // 指定图表的配置项和数据
        option = {
            color:['#0960bd','#0ab39c','#299cdb','#f7b84b','#f06548','#181C32','#0d6efd','#6610f2','#6f42c1','#d63384','#dc3545','#fd7e14','#ffc107','#198754','#20c997','#0dcaf0'],
            title: {
                text: null
            },
            tooltip: {
                trigger: 'axis'
            },
            dataZoom: [
                {
                    id: 'dataZoomX',
                    show : true,
                    type: 'slider',
                    xAxisIndex: [0],
                    start: 50,//数据窗口范围的起始百分比0-100
                    end: 100,//数据窗口范围的结束百分比0-100
                },
            ],
            legend: {
                data: ['邮件营销', '联盟广告', '视频广告', '直接访问', '搜索引擎']
            },
            grid: {
                left: '3%',
                right: '4%',
                bottom: '3%',
                containLabel: true
            },
            toolbox: {
                /*feature: {
                    saveAsImage: {}
                }*/
            },
            xAxis: {
                type: 'category',
                boundaryGap: false,
                data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                    name: '邮件营销',
                    type: 'line',
                    smooth:true,
                    stack: '总量',
                    data: [120, 132, 101, 134, 90, 230, 210]
                },
                {
                    name: '联盟广告',
                    type: 'line',
                    smooth:true,
                    stack: '总量',
                    data: [220, 182, 191, 234, 290, 330, 310]
                },
                {
                    name: '视频广告',
                    type: 'line',
                    smooth:true,
                    stack: '总量',
                    data: [150, 232, 201, 154, 190, 330, 410]
                },
                {
                    name: '直接访问',
                    type: 'line',
                    smooth:true,
                    stack: '总量',
                    data: [320, 332, 301, 334, 390, 330, 320]
                },
                {
                    name: '搜索引擎',
                    type: 'line',
                    smooth:true,
                    stack: '总量',
                    data: [820, 932, 901, 934, 1290, 1330, 1320]
                }
            ]
        };

        // 使用刚指定的配置项和数据显示图表。
        myChart.setOption(option);
    })
</script>
{/block}